package testEnum;

public class TrafficLampEnumTest {

	public static void main(String[] args) {
		TrafficLampEnum tl = TrafficLampEnum.RED;
		System.out.println("TrafficLampEnum.RED = " + tl);
		System.out.println("valueOf GREEN = " + TrafficLampEnum.valueOf("GREEN"));
		//System.out.println("valueOf BLUE = " + TrafficLampEnum.valueOf("BLUE"));
		System.out.println("name = " + tl.name());
		tl.show();
		System.out.println("nextLamp = " + tl.nextLamp());
		tl.nextLamp().show();
	}

}
